<!-- HTML header for doxygen 1.9.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>COMMONS-NET: commonsNet.nntp.NNTP类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">COMMONS-NET
   </div>
  </td>
    <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <span id="MSearchSelect"                onmouseover="return searchBox.OnSearchSelectShow()"                onmouseout="return searchBox.OnSearchSelectHide()">&#160;</span>
          <input type="text" id="MSearchField" value="" placeholder="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('classcommonsNet_1_1nntp_1_1NNTP.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classcommonsNet_1_1nntp_1_1NNTP-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">commonsNet.nntp.NNTP类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>NNTP的基本功能。  
 <a href="classcommonsNet_1_1nntp_1_1NNTP.html#details">更多...</a></p>
<div class="dynheader">
类 commonsNet.nntp.NNTP 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classcommonsNet_1_1nntp_1_1NNTP.png" usemap="#commonsNet.nntp.NNTP_map" alt=""/>
  <map id="commonsNet.nntp.NNTP_map" name="commonsNet.nntp.NNTP_map">
<area href="classcommonsNet_1_1SocketClient.html" title="SocketClient类提供客户端对象访问套接字所需的基本操作。打开套接字、关闭套接字、设置超时等。" alt="commonsNet.SocketClient" shape="rect" coords="0,0,180,24"/>
<area href="classcommonsNet_1_1nntp_1_1NNTPClient.html" title="NNTPClient封装了在NNTP服务器发布和检索文章所需的所有功能。" alt="commonsNet.nntp.NNTPClient" shape="rect" coords="0,112,180,136"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:adb161820e1ca9d511915765084443016"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#adb161820e1ca9d511915765084443016">article</a> ()</td></tr>
<tr class="memdesc:adb161820e1ca9d511915765084443016"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于向服务器发送NNTP ARTICLE命令的便捷方法，接受响应并返回响应码。  <br /></td></tr>
<tr class="separator:adb161820e1ca9d511915765084443016"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3194ea72ab4c60968602cf8d78aff98"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#ac3194ea72ab4c60968602cf8d78aff98">article</a> (articleNumber: Int64)</td></tr>
<tr class="memdesc:ac3194ea72ab4c60968602cf8d78aff98"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于向服务器发送NNTP ARTICLE命令的便捷方法，接受响应并返回响应码。  <br /></td></tr>
<tr class="separator:ac3194ea72ab4c60968602cf8d78aff98"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37d95f520eff1dc4193bfaa7e3c0d3d2"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#a37d95f520eff1dc4193bfaa7e3c0d3d2">article</a> (messageId: String)</td></tr>
<tr class="memdesc:a37d95f520eff1dc4193bfaa7e3c0d3d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于向服务器发送NNTP ARTICLE命令的便捷方法，接受响应并返回响应码。  <br /></td></tr>
<tr class="separator:a37d95f520eff1dc4193bfaa7e3c0d3d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2cf411724e249e1b8315f80d6cc1c968"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#a2cf411724e249e1b8315f80d6cc1c968">authinfoPass</a> (password: String)</td></tr>
<tr class="memdesc:a2cf411724e249e1b8315f80d6cc1c968"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于向服务器发送AUTHINFO PASS命令的便捷方法，接受响应并返回响应码。此操作应该紧随AUTHINFO USER命令之后。  <br /></td></tr>
<tr class="separator:a2cf411724e249e1b8315f80d6cc1c968"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30e075e090017a99a21a72b0b1d752ed"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#a30e075e090017a99a21a72b0b1d752ed">authinfoUser</a> (user: String)</td></tr>
<tr class="memdesc:a30e075e090017a99a21a72b0b1d752ed"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于向服务器发送AUTHINFO USER命令的便捷方法，接受响应并返回响应码。  <br /></td></tr>
<tr class="separator:a30e075e090017a99a21a72b0b1d752ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe551d49f7b68099c8e53c8d20529f2f"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#afe551d49f7b68099c8e53c8d20529f2f">body</a> ()</td></tr>
<tr class="memdesc:afe551d49f7b68099c8e53c8d20529f2f"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于向服务器发送NNTP BODY命令的便捷方法，接受响应并返回响应码。  <br /></td></tr>
<tr class="separator:afe551d49f7b68099c8e53c8d20529f2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd1b6fc37b0cabc1a7341abd2e74753d"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#acd1b6fc37b0cabc1a7341abd2e74753d">body</a> (articleNumber: Int64)</td></tr>
<tr class="memdesc:acd1b6fc37b0cabc1a7341abd2e74753d"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于向服务器发送NNTP BODY命令的便捷方法，接受响应并返回响应码。  <br /></td></tr>
<tr class="separator:acd1b6fc37b0cabc1a7341abd2e74753d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0004490458cbddcac95662d546e5a85"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#ae0004490458cbddcac95662d546e5a85">body</a> (messageId: String)</td></tr>
<tr class="memdesc:ae0004490458cbddcac95662d546e5a85"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于向服务器发送NNTP BODY命令的便捷方法，接受响应并返回响应码。  <br /></td></tr>
<tr class="separator:ae0004490458cbddcac95662d546e5a85"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63c2a93cb2108329e301e9637479ff13"><td class="memItemLeft" align="right" valign="top">public override func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#a63c2a93cb2108329e301e9637479ff13">disconnect</a> ()</td></tr>
<tr class="memdesc:a63c2a93cb2108329e301e9637479ff13"><td class="mdescLeft">&#160;</td><td class="mdescRight">关闭与NNTP服务器的连接，并将某些内部数据置空，以便可以回收空间。  <br /></td></tr>
<tr class="separator:a63c2a93cb2108329e301e9637479ff13"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a399726e3a3b1f0fa246987e7080a8433"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#a399726e3a3b1f0fa246987e7080a8433">getReply</a> (): Int64</td></tr>
<tr class="memdesc:a399726e3a3b1f0fa246987e7080a8433"><td class="mdescLeft">&#160;</td><td class="mdescRight">从NNTP服务器获取回复并返回整数响应码。调用此方法后，可以从getReplySstring访问实际的响应文本。  <br /></td></tr>
<tr class="separator:a399726e3a3b1f0fa246987e7080a8433"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0900112f09cb449984fcd8f9995fb662"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#a0900112f09cb449984fcd8f9995fb662">getReplyCode</a> ()</td></tr>
<tr class="memdesc:a0900112f09cb449984fcd8f9995fb662"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回最后一个NNTP回复的回复代码的整数值。  <br /></td></tr>
<tr class="separator:a0900112f09cb449984fcd8f9995fb662"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a1eac243211b656810c9b26bafe2a94"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#a0a1eac243211b656810c9b26bafe2a94">getReplyString</a> ()</td></tr>
<tr class="memdesc:a0a1eac243211b656810c9b26bafe2a94"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回上一个NNTP服务器响应的完整文本（不包括行尾标记）。  <br /></td></tr>
<tr class="separator:a0a1eac243211b656810c9b26bafe2a94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac865aa3b3459e21921507a8f9b13b0e9"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#ac865aa3b3459e21921507a8f9b13b0e9">group</a> (newsgroup: String)</td></tr>
<tr class="memdesc:ac865aa3b3459e21921507a8f9b13b0e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于向服务器发送NNTP GROUP命令的便捷方法，接受响应并返回响应码。  <br /></td></tr>
<tr class="separator:ac865aa3b3459e21921507a8f9b13b0e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acdae4b22a9d99be6ad1d35c4c317ce5a"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#acdae4b22a9d99be6ad1d35c4c317ce5a">head</a> ()</td></tr>
<tr class="memdesc:acdae4b22a9d99be6ad1d35c4c317ce5a"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于向服务器发送NNTP HEAD命令的便捷方法，接受响应并返回响应码。  <br /></td></tr>
<tr class="separator:acdae4b22a9d99be6ad1d35c4c317ce5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3316bce2711c813a7f829110d518ccc3"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#a3316bce2711c813a7f829110d518ccc3">head</a> (articleNumber: Int64)</td></tr>
<tr class="memdesc:a3316bce2711c813a7f829110d518ccc3"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于向服务器发送NNTP HEAD命令的便捷方法，接受响应并返回响应码。  <br /></td></tr>
<tr class="separator:a3316bce2711c813a7f829110d518ccc3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1f4aede6017490a121c0d5b0faad69c"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#af1f4aede6017490a121c0d5b0faad69c">head</a> (messageId: String)</td></tr>
<tr class="memdesc:af1f4aede6017490a121c0d5b0faad69c"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于向服务器发送NNTP HEAD命令的便捷方法，接受响应并返回响应码。  <br /></td></tr>
<tr class="separator:af1f4aede6017490a121c0d5b0faad69c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86a815f4499991422f5cd11ec43e59d5"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#a86a815f4499991422f5cd11ec43e59d5">help</a> ()</td></tr>
<tr class="memdesc:a86a815f4499991422f5cd11ec43e59d5"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于向服务器发送NNTP HELP命令的便捷方法，接受响应并返回响应码。  <br /></td></tr>
<tr class="separator:a86a815f4499991422f5cd11ec43e59d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c91aab858a368e260811225cf470dd2"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#a0c91aab858a368e260811225cf470dd2">ihave</a> (messageId: String)</td></tr>
<tr class="memdesc:a0c91aab858a368e260811225cf470dd2"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于向服务器发送NNTP IHAVE命令的便捷方法，接受响应并返回响应码。  <br /></td></tr>
<tr class="separator:a0c91aab858a368e260811225cf470dd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:affc37d4ec2cad8c0f942718f76d855c4"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#affc37d4ec2cad8c0f942718f76d855c4">isAllowedToPost</a> ()</td></tr>
<tr class="memdesc:affc37d4ec2cad8c0f942718f76d855c4"><td class="mdescLeft">&#160;</td><td class="mdescRight">表示是否允许客户端将文章发布到其当前连接的服务器。  <br /></td></tr>
<tr class="separator:affc37d4ec2cad8c0f942718f76d855c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c9012eda5309f1087c78751ba682a89"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#a9c9012eda5309f1087c78751ba682a89">last</a> ()</td></tr>
<tr class="memdesc:a9c9012eda5309f1087c78751ba682a89"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于向服务器发送NNTP LAST命令的便捷方法，接受响应并返回响应码。  <br /></td></tr>
<tr class="separator:a9c9012eda5309f1087c78751ba682a89"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f2e865b3716f12bb7ae639d4ad169f3"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#a2f2e865b3716f12bb7ae639d4ad169f3">list</a> ()</td></tr>
<tr class="memdesc:a2f2e865b3716f12bb7ae639d4ad169f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于向服务器发送NNTP LIST命令的便捷方法，接受响应并返回响应码。  <br /></td></tr>
<tr class="separator:a2f2e865b3716f12bb7ae639d4ad169f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa719511f5667ce97c4ab6506831ea473"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#aa719511f5667ce97c4ab6506831ea473">listActive</a> (wildmat: String)</td></tr>
<tr class="memdesc:aa719511f5667ce97c4ab6506831ea473"><td class="mdescLeft">&#160;</td><td class="mdescRight">扩展LIST命令的一个包装，它接受一个参数，允许我们选择性地列出多个组。  <br /></td></tr>
<tr class="separator:aa719511f5667ce97c4ab6506831ea473"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5fca221d49f57d39390d44fb96fed367"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#a5fca221d49f57d39390d44fb96fed367">newgroups</a> (date: String, time: String, GMT: Bool, distributions: ?String)</td></tr>
<tr class="memdesc:a5fca221d49f57d39390d44fb96fed367"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于向服务器发送 "NEWGROUPS" 命令的便捷方法，接受响应并返回响应码。  <br /></td></tr>
<tr class="separator:a5fca221d49f57d39390d44fb96fed367"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f8ede65c99f11a6be9ee98dd5ce72bd"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#a6f8ede65c99f11a6be9ee98dd5ce72bd">newnews</a> (newsgroups: String, date: String, time: String, GMT: Bool, distributions: ?String)</td></tr>
<tr class="memdesc:a6f8ede65c99f11a6be9ee98dd5ce72bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于向服务器发送 "NEWGROUPS" 命令的便捷方法，接受响应并返回响应码。  <br /></td></tr>
<tr class="separator:a6f8ede65c99f11a6be9ee98dd5ce72bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0edcdddac31d00511e065632f59150e8"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#a0edcdddac31d00511e065632f59150e8">next</a> ()</td></tr>
<tr class="memdesc:a0edcdddac31d00511e065632f59150e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于向服务器发送NNTP NEXT命令的便捷方法，接受响应并返回响应码。  <br /></td></tr>
<tr class="separator:a0edcdddac31d00511e065632f59150e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a838969b8339bcfd1764c0e875ad2fc33"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#a838969b8339bcfd1764c0e875ad2fc33">post</a> ()</td></tr>
<tr class="memdesc:a838969b8339bcfd1764c0e875ad2fc33"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于向服务器发送NNTP POST命令的便捷方法，接受响应并返回响应码。  <br /></td></tr>
<tr class="separator:a838969b8339bcfd1764c0e875ad2fc33"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d89123831c0a39cd84cd594a63cd4ab"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#a5d89123831c0a39cd84cd594a63cd4ab">quit</a> ()</td></tr>
<tr class="memdesc:a5d89123831c0a39cd84cd594a63cd4ab"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于向服务器发送NNTP QUIT命令的便捷方法，接受响应并返回响应码。  <br /></td></tr>
<tr class="separator:a5d89123831c0a39cd84cd594a63cd4ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8cbacd89b8fdb93316904c5d31ec4506"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#a8cbacd89b8fdb93316904c5d31ec4506">sendCommand</a> (command: String)</td></tr>
<tr class="memdesc:a8cbacd89b8fdb93316904c5d31ec4506"><td class="mdescLeft">&#160;</td><td class="mdescRight">向服务器发送不带参数的NNTP命令，等待答复并返回数字响应代码。  <br /></td></tr>
<tr class="separator:a8cbacd89b8fdb93316904c5d31ec4506"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1b6e3cd7e8157bcda03a3a0cb18eb92"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#ac1b6e3cd7e8157bcda03a3a0cb18eb92">sendCommand</a> (command: String, args: ?String)</td></tr>
<tr class="memdesc:ac1b6e3cd7e8157bcda03a3a0cb18eb92"><td class="mdescLeft">&#160;</td><td class="mdescRight">向服务器发送NNTP命令，等待答复并返回数字响应代码。  <br /></td></tr>
<tr class="separator:ac1b6e3cd7e8157bcda03a3a0cb18eb92"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f1a93479ff15ae840bbecb3feac0c0f"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#a3f1a93479ff15ae840bbecb3feac0c0f">stat</a> ()</td></tr>
<tr class="memdesc:a3f1a93479ff15ae840bbecb3feac0c0f"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于向服务器发送NNTP STAT命令的便捷方法，接受响应并返回响应码。  <br /></td></tr>
<tr class="separator:a3f1a93479ff15ae840bbecb3feac0c0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73c84b9f90b64464a8044665e20331b8"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#a73c84b9f90b64464a8044665e20331b8">stat</a> (articleNumber: Int64)</td></tr>
<tr class="memdesc:a73c84b9f90b64464a8044665e20331b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于向服务器发送NNTP STAT命令的便捷方法，接受响应并返回响应码。  <br /></td></tr>
<tr class="separator:a73c84b9f90b64464a8044665e20331b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9069273d7422680baf54ed71cb8c3a24"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#a9069273d7422680baf54ed71cb8c3a24">stat</a> (messageId: String)</td></tr>
<tr class="memdesc:a9069273d7422680baf54ed71cb8c3a24"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于向服务器发送NNTP STAT命令的便捷方法，接受响应并返回响应码。  <br /></td></tr>
<tr class="separator:a9069273d7422680baf54ed71cb8c3a24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f5d1360a80c49c43e014dc30da73878"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#a5f5d1360a80c49c43e014dc30da73878">xhdr</a> (header: String, selectedArticles: String)</td></tr>
<tr class="memdesc:a5f5d1360a80c49c43e014dc30da73878"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于向服务器发送NNTP XHDR命令的便捷方法，接受响应并返回响应码。  <br /></td></tr>
<tr class="separator:a5f5d1360a80c49c43e014dc30da73878"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa272d10c8a7e19ce4fffbc61d00c044a"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#aa272d10c8a7e19ce4fffbc61d00c044a">xover</a> (selectedArticles: String)</td></tr>
<tr class="memdesc:aa272d10c8a7e19ce4fffbc61d00c044a"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于向服务器发送NNTP XOVER命令的便捷方法，接受响应并返回响应码。  <br /></td></tr>
<tr class="separator:aa272d10c8a7e19ce4fffbc61d00c044a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classcommonsNet_1_1SocketClient"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classcommonsNet_1_1SocketClient')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classcommonsNet_1_1SocketClient.html">commonsNet.SocketClient</a></td></tr>
<tr class="memitem:a1bb898df45d7b393d6c2814753b05be3 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a1bb898df45d7b393d6c2814753b05be3">init</a> ()</td></tr>
<tr class="memdesc:a1bb898df45d7b393d6c2814753b05be3 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">默认构造函数  <br /></td></tr>
<tr class="separator:a1bb898df45d7b393d6c2814753b05be3 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87551917056355777424650106857aaa inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public mut prop&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a87551917056355777424650106857aaa">readTimeout</a> : ?Duration</td></tr>
<tr class="separator:a87551917056355777424650106857aaa inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1bc17afff65b64aa296c3b55ada867ef inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public mut prop&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a1bc17afff65b64aa296c3b55ada867ef">writeTimeout</a> : ?Duration</td></tr>
<tr class="separator:a1bc17afff65b64aa296c3b55ada867ef inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6356afd60138e32bd7b05c8be35149d6 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public prop&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a6356afd60138e32bd7b05c8be35149d6">remoteAddress</a> : IPAddress</td></tr>
<tr class="memdesc:a6356afd60138e32bd7b05c8be35149d6 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">客户端连接到的远程地址。委托给<code><a class="el" href="">StreamingSocket#remoteAddress</a></code>  <br /></td></tr>
<tr class="separator:a6356afd60138e32bd7b05c8be35149d6 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48b65614c29c5816bddc0c0b6d9bf2df inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public prop&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a48b65614c29c5816bddc0c0b6d9bf2df">remotePort</a> : UInt16</td></tr>
<tr class="memdesc:a48b65614c29c5816bddc0c0b6d9bf2df inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">客户端连接到的远程主机的端口号  <br /></td></tr>
<tr class="separator:a48b65614c29c5816bddc0c0b6d9bf2df inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93a0598e2a9e67a8cd12779a30d65142 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public prop&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a93a0598e2a9e67a8cd12779a30d65142">localAddress</a> : IPAddress</td></tr>
<tr class="memdesc:a93a0598e2a9e67a8cd12779a30d65142 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">客户端套接字绑定到的本地地址。委托给<code><a class="el" href="">StreamingSocket#localAddress</a></code>  <br /></td></tr>
<tr class="separator:a93a0598e2a9e67a8cd12779a30d65142 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfc16ab47c94037df62fb2ba9d027f1e inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public prop&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#acfc16ab47c94037df62fb2ba9d027f1e">localPort</a> : UInt16</td></tr>
<tr class="memdesc:acfc16ab47c94037df62fb2ba9d027f1e inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">客户端绑定到的本地端口号  <br /></td></tr>
<tr class="separator:acfc16ab47c94037df62fb2ba9d027f1e inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9044380b2d1dd34779216a935fa265c inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public mut prop&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#af9044380b2d1dd34779216a935fa265c">defaultPort</a> : UInt16</td></tr>
<tr class="memdesc:af9044380b2d1dd34779216a935fa265c inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">客户端应连接的默认端口。  <br /></td></tr>
<tr class="separator:af9044380b2d1dd34779216a935fa265c inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c83df8caef820abcb2ab39ebeb3ffa7 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public mut prop&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a0c83df8caef820abcb2ab39ebeb3ffa7">connectTimeout</a> : Duration</td></tr>
<tr class="memdesc:a0c83df8caef820abcb2ab39ebeb3ffa7 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">连接超时时间，将传递给socket对象的connect方法。  <br /></td></tr>
<tr class="separator:a0c83df8caef820abcb2ab39ebeb3ffa7 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a488725edabd4193aa85e999f834245 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a7a488725edabd4193aa85e999f834245">isConnected</a> (): Bool</td></tr>
<tr class="memdesc:a7a488725edabd4193aa85e999f834245 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">如果套接字不是None，则返回true。  <br /></td></tr>
<tr class="separator:a7a488725edabd4193aa85e999f834245 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04e993f4f4374f378f9ddf730e7d1a1a inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a04e993f4f4374f378f9ddf730e7d1a1a">setSocketFactory</a> (socketFactory: ?<a class="el" href="classcommonsNet_1_1SocketFactory.html">SocketFactory</a>): Unit</td></tr>
<tr class="separator:a04e993f4f4374f378f9ddf730e7d1a1a inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4daf93a806b1a99d35e8b2d8394b2ff inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#ad4daf93a806b1a99d35e8b2d8394b2ff">setServerSocketFactory</a> (serverSocketFactory: ?<a class="el" href="classcommonsNet_1_1ServerSocketFactory.html">ServerSocketFactory</a>): Unit</td></tr>
<tr class="separator:ad4daf93a806b1a99d35e8b2d8394b2ff inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0fbcc57fadf7e3f7b9061232f3bc6303 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public open func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a0fbcc57fadf7e3f7b9061232f3bc6303">connect</a> (address: String): Unit</td></tr>
<tr class="memdesc:a0fbcc57fadf7e3f7b9061232f3bc6303 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">连接到远程主机  <br /></td></tr>
<tr class="separator:a0fbcc57fadf7e3f7b9061232f3bc6303 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a641075d2637ea7141ee2a535d922ef47 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public open func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a641075d2637ea7141ee2a535d922ef47">connect</a> (address: String, port: UInt16): Unit</td></tr>
<tr class="memdesc:a641075d2637ea7141ee2a535d922ef47 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">连接到远程主机  <br /></td></tr>
<tr class="separator:a641075d2637ea7141ee2a535d922ef47 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a5e20f3c11d7648fe8e13bbbfecc685 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public open func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a3a5e20f3c11d7648fe8e13bbbfecc685">connect</a> (address: String, port: UInt16, localAddress: Option&lt;SocketAddress&gt;): Unit</td></tr>
<tr class="memdesc:a3a5e20f3c11d7648fe8e13bbbfecc685 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">连接到远程主机  <br /></td></tr>
<tr class="separator:a3a5e20f3c11d7648fe8e13bbbfecc685 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ea99f7b6db651e4209ec78e8055ad45 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public open func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a1ea99f7b6db651e4209ec78e8055ad45">connect</a> (address: SocketAddress): Unit</td></tr>
<tr class="memdesc:a1ea99f7b6db651e4209ec78e8055ad45 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">连接到远程主机  <br /></td></tr>
<tr class="separator:a1ea99f7b6db651e4209ec78e8055ad45 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0bfe81fc4e64ac8c8cb4b0982ea6ca7 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public open func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#ac0bfe81fc4e64ac8c8cb4b0982ea6ca7">connect</a> (address: SocketAddress, localAddress: Option&lt;SocketAddress&gt;): Unit</td></tr>
<tr class="memdesc:ac0bfe81fc4e64ac8c8cb4b0982ea6ca7 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">连接到远程主机  <br /></td></tr>
<tr class="separator:ac0bfe81fc4e64ac8c8cb4b0982ea6ca7 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d49495a9b64c3e848a020b509dcfdc0 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a9d49495a9b64c3e848a020b509dcfdc0">addProtocolCommandListener</a> (listener: <a class="el" href="classcommonsNet_1_1ProtocolCommandListener.html">ProtocolCommandListener</a>): Unit</td></tr>
<tr class="memdesc:a9d49495a9b64c3e848a020b509dcfdc0 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加一个ProtocolCommandListener  <br /></td></tr>
<tr class="separator:a9d49495a9b64c3e848a020b509dcfdc0 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a644174b37f378552318c6b93e44ae0e3 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a644174b37f378552318c6b93e44ae0e3">removeProtocolCommandListener</a> (listener: <a class="el" href="classcommonsNet_1_1ProtocolCommandListener.html">ProtocolCommandListener</a>): Unit</td></tr>
<tr class="memdesc:a644174b37f378552318c6b93e44ae0e3 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">移除一个ProtocolCommandListener  <br /></td></tr>
<tr class="separator:a644174b37f378552318c6b93e44ae0e3 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a209c171637129b711301908fe5781329 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public open func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a209c171637129b711301908fe5781329">disconnect</a> (): Unit</td></tr>
<tr class="memdesc:a209c171637129b711301908fe5781329 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">端口socket连接。应该在完成使用后以及再次连接之前调用此方法。_socket_将设为None  <br /></td></tr>
<tr class="separator:a209c171637129b711301908fe5781329 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a174f159c659d115fbb46baace12215d7 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a174f159c659d115fbb46baace12215d7">verifyRemote</a> (socket: StreamingSocket)</td></tr>
<tr class="memdesc:a174f159c659d115fbb46baace12215d7 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">验证给定套接字的远端是否为当前SocketClient连接的同一主机。  <br /></td></tr>
<tr class="separator:a174f159c659d115fbb46baace12215d7 inherit pub_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:aa7f4efcb2fbfc23099953289ee915906"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#aa7f4efcb2fbfc23099953289ee915906">static let DEFAULT_PORT</a> : UInt16 = 119</td></tr>
<tr class="memdesc:aa7f4efcb2fbfc23099953289ee915906"><td class="mdescLeft">&#160;</td><td class="mdescRight">NNTP默认端口  <br /></td></tr>
<tr class="separator:aa7f4efcb2fbfc23099953289ee915906"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_attribs_classcommonsNet_1_1SocketClient"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_classcommonsNet_1_1SocketClient')"><img src="closed.png" alt="-"/>&#160;Public 属性 继承自 <a class="el" href="classcommonsNet_1_1SocketClient.html">commonsNet.SocketClient</a></td></tr>
<tr class="memitem:acf063b8bd9929825dc931fa75918df33 inherit pub_attribs_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#acf063b8bd9929825dc931fa75918df33">static let NETASCII_EOL</a> : String = &quot;\r\n&quot;</td></tr>
<tr class="memdesc:acf063b8bd9929825dc931fa75918df33 inherit pub_attribs_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">大多数IETF协议使用的换行符，CRLF  <br /></td></tr>
<tr class="separator:acf063b8bd9929825dc931fa75918df33 inherit pub_attribs_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-methods" name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:aaa33b71d3a883daf4a000a2e74c72a7f"><td class="memItemLeft" align="right" valign="top">protected override func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#aaa33b71d3a883daf4a000a2e74c72a7f">_connectAction_</a> ()</td></tr>
<tr class="memdesc:aaa33b71d3a883daf4a000a2e74c72a7f"><td class="mdescLeft">&#160;</td><td class="mdescRight">默认的NNTP构造函数。将默认端口设置为<code>DEFAULT_PORT</code>。  <br /></td></tr>
<tr class="separator:aaa33b71d3a883daf4a000a2e74c72a7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_classcommonsNet_1_1SocketClient"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classcommonsNet_1_1SocketClient')"><img src="closed.png" alt="-"/>&#160;Protected 成员函数 继承自 <a class="el" href="classcommonsNet_1_1SocketClient.html">commonsNet.SocketClient</a></td></tr>
<tr class="memitem:afa2734bc5477eabf0599324d6ede038b inherit pro_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">protected func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#afa2734bc5477eabf0599324d6ede038b">fireCommandSent</a> (command: String, message: String)</td></tr>
<tr class="memdesc:afa2734bc5477eabf0599324d6ede038b inherit pro_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">如果有任何监听器，则向他们发送命令的详细信息。  <br /></td></tr>
<tr class="separator:afa2734bc5477eabf0599324d6ede038b inherit pro_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9c596dad672de038df93ef77b63746f inherit pro_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">protected open func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#ae9c596dad672de038df93ef77b63746f">fireReplyReceived</a> (replyCode: Int64, reply: String)</td></tr>
<tr class="memdesc:ae9c596dad672de038df93ef77b63746f inherit pro_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">如果有任何监听器，则向他们发送回复的详细信息。  <br /></td></tr>
<tr class="separator:ae9c596dad672de038df93ef77b63746f inherit pro_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5133836949f8b27b41a31473654c881 inherit pro_methods_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">protected open func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#ab5133836949f8b27b41a31473654c881">_connectAction_</a> ()</td></tr>
<tr class="memdesc:ab5133836949f8b27b41a31473654c881 inherit pro_methods_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">由于存在较多的connect方法，因此提供_connectAction_方法作为在建立连接后立即执行某些操作的手段，而不是重新实现所有connect方法。  <br /></td></tr>
<tr class="separator:ab5133836949f8b27b41a31473654c881 inherit pro_methods_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-attribs" name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:a83ff87e63bf668d616a0652f2ee64d9a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#a83ff87e63bf668d616a0652f2ee64d9a">var _reader_</a> : ?StringReader&lt;StreamingSocket&gt; = None</td></tr>
<tr class="memdesc:a83ff87e63bf668d616a0652f2ee64d9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">包装StreamingSocket以与服务器通信。由｛  <br /></td></tr>
<tr class="separator:a83ff87e63bf668d616a0652f2ee64d9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f677632bd5f0fcaf8ae3085d30ef59f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#a0f677632bd5f0fcaf8ae3085d30ef59f">var _writer_</a> : ?StringWriter&lt;StreamingSocket&gt; = None</td></tr>
<tr class="memdesc:a0f677632bd5f0fcaf8ae3085d30ef59f"><td class="mdescLeft">&#160;</td><td class="mdescRight">包装StreamingSocket以与服务器通信。由｛  <br /></td></tr>
<tr class="separator:a0f677632bd5f0fcaf8ae3085d30ef59f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_classcommonsNet_1_1SocketClient"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classcommonsNet_1_1SocketClient')"><img src="closed.png" alt="-"/>&#160;Protected 属性 继承自 <a class="el" href="classcommonsNet_1_1SocketClient.html">commonsNet.SocketClient</a></td></tr>
<tr class="memitem:a3da898c3d3f8488cf8a498ce1147eaf7 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a3da898c3d3f8488cf8a498ce1147eaf7">var _socket_</a> : ?StreamingSocket</td></tr>
<tr class="memdesc:a3da898c3d3f8488cf8a498ce1147eaf7 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">连接使用的socket  <br /></td></tr>
<tr class="separator:a3da898c3d3f8488cf8a498ce1147eaf7 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7610863136db5773a465f7a4feb10cd5 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a7610863136db5773a465f7a4feb10cd5">var _input_</a> : ?InputStream = None</td></tr>
<tr class="memdesc:a7610863136db5773a465f7a4feb10cd5 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">socket输入流  <br /></td></tr>
<tr class="separator:a7610863136db5773a465f7a4feb10cd5 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60f2dfec175bdbd8f243aea7a7dae5ec inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a60f2dfec175bdbd8f243aea7a7dae5ec">var _output_</a> : ?OutputStream = None</td></tr>
<tr class="memdesc:a60f2dfec175bdbd8f243aea7a7dae5ec inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">socket输出流  <br /></td></tr>
<tr class="separator:a60f2dfec175bdbd8f243aea7a7dae5ec inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ae2f2d89af96526257357b68009b196 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a1ae2f2d89af96526257357b68009b196">var _hostname_</a> : ?String</td></tr>
<tr class="memdesc:a1ae2f2d89af96526257357b68009b196 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于连接的主机名  <br /></td></tr>
<tr class="separator:a1ae2f2d89af96526257357b68009b196 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0eeb213da3426f5b5fe3b0341f628106 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a0eeb213da3426f5b5fe3b0341f628106">var _remoteSocketAddress_</a> : ?SocketAddress</td></tr>
<tr class="memdesc:a0eeb213da3426f5b5fe3b0341f628106 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于连接的远程套接字地址。  <br /></td></tr>
<tr class="separator:a0eeb213da3426f5b5fe3b0341f628106 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a222ed7ff95066135d7427671c17cbb51 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a222ed7ff95066135d7427671c17cbb51">var _defaultPort_</a> : UInt16</td></tr>
<tr class="memdesc:a222ed7ff95066135d7427671c17cbb51 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">客户端应连接的默认端口。  <br /></td></tr>
<tr class="separator:a222ed7ff95066135d7427671c17cbb51 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45e24f8b9f78f96b0e42499f5224c42a inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a45e24f8b9f78f96b0e42499f5224c42a">var _socketFactory_</a> : <a class="el" href="classcommonsNet_1_1SocketFactory.html">SocketFactory</a></td></tr>
<tr class="separator:a45e24f8b9f78f96b0e42499f5224c42a inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa278799518e05c3b7aeb28bcebb23375 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#aa278799518e05c3b7aeb28bcebb23375">var _serverSocketFactory_</a> : <a class="el" href="classcommonsNet_1_1ServerSocketFactory.html">ServerSocketFactory</a></td></tr>
<tr class="separator:aa278799518e05c3b7aeb28bcebb23375 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a839d81898a2aacfcf9bfd3b7b6f0ffb8 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a839d81898a2aacfcf9bfd3b7b6f0ffb8">var _connectTimeout_</a> : Duration = DEFAULT_CONNECT_TIMEOUT</td></tr>
<tr class="memdesc:a839d81898a2aacfcf9bfd3b7b6f0ffb8 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">连接超时时间  <br /></td></tr>
<tr class="separator:a839d81898a2aacfcf9bfd3b7b6f0ffb8 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57b01a4fe6374778b227c41a8a45b0e1 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1SocketClient.html#a57b01a4fe6374778b227c41a8a45b0e1">let _commandSupport</a> : <a class="el" href="classcommonsNet_1_1ProtocolCommandSupport.html">ProtocolCommandSupport</a></td></tr>
<tr class="memdesc:a57b01a4fe6374778b227c41a8a45b0e1 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="mdescLeft">&#160;</td><td class="mdescRight">ProtocolCommandSupport对象，用于管理ProtocolCommandListeners的注册和ProtocolCommandEvents的触发。  <br /></td></tr>
<tr class="separator:a57b01a4fe6374778b227c41a8a45b0e1 inherit pro_attribs_classcommonsNet_1_1SocketClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a689fc2d94b43ff1520e3c542caa25757"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#a689fc2d94b43ff1520e3c542caa25757">var _isAllowedToPost</a> : Bool = false</td></tr>
<tr class="separator:a689fc2d94b43ff1520e3c542caa25757"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4fc17db3ae4daa007d6441381dec5e7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#af4fc17db3ae4daa007d6441381dec5e7">var replyCode</a> = -1</td></tr>
<tr class="separator:af4fc17db3ae4daa007d6441381dec5e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad61a93b813aae007114082b0542f8692"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html#ad61a93b813aae007114082b0542f8692">var replyString</a> = &quot;&quot;</td></tr>
<tr class="separator:ad61a93b813aae007114082b0542f8692"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>NNTP的基本功能。 </p>
<p>NNTP类本身并不打算直接使用，提供它只是为了方便您在需要时实现自己的NNTP客户端。如果你不需要自己的实现， 您应该使用NNTPClient。NNTP类提供各种NNTP常量，提供了一组名称与NNTP命令名称相对应的方法来便于交互。<br  />
 如果客户端空闲时间超过给定时间段，或者服务器被操作员或其他原因关闭，则NNTP服务器可能会选择提前关闭连接。 当NNTP类接收到服务器连接对命令响应的NNTPReply.SERVICE_DISCONTINUED时，将检测到提前关闭的NNTP连接， 遇到该回复的NNTP类方法将抛出NNTPConnectionClosedException。 当遇到NNTPConnectionClosedException时，必须使用disconnect（）断开连接，以正确清理NNTP使用的系统资源。 在断开连接之前，您可以使用getReplyCode和getReplyString检查最后的回复代码和文本。<br  />
 当从服务器接收到的回复与协议规范的偏离程度足以使其无法以有用的方式进行解释时，将抛出MalformedServerReplyException。</p>
<dl class="section see"><dt>参见</dt><dd>NNTPClient </dd>
<dd>
NNTPConnectionClosedException </dd>
<dd>
MalformedServerReplyException </dd></dl>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="aaa33b71d3a883daf4a000a2e74c72a7f" name="aaa33b71d3a883daf4a000a2e74c72a7f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaa33b71d3a883daf4a000a2e74c72a7f">&#9670;&#160;</a></span>_connectAction_()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">protected override func commonsNet.nntp.NNTP._connectAction_ </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>默认的NNTP构造函数。将默认端口设置为<code>DEFAULT_PORT</code>。 </p>
<p>启动控制连接并获得初始回复，确定是否允许客户端发布到服务器。包装_socket_来初始化_reader_和_writer_。 </p>

</div>
</div>
<a id="adb161820e1ca9d511915765084443016" name="adb161820e1ca9d511915765084443016"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb161820e1ca9d511915765084443016">&#9670;&#160;</a></span>article() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.article </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>用于向服务器发送NNTP ARTICLE命令的便捷方法，接受响应并返回响应码。 </p>
<dl class="section return"><dt>返回</dt><dd>从服务器收到的响应码。 </dd></dl>

</div>
</div>
<a id="ac3194ea72ab4c60968602cf8d78aff98" name="ac3194ea72ab4c60968602cf8d78aff98"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac3194ea72ab4c60968602cf8d78aff98">&#9670;&#160;</a></span>article() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.article </td>
          <td>(</td>
          <td class="paramname"><em>articleNumber</em>:&#160;</td>
          <td class="paramtype">Int64</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>用于向服务器发送NNTP ARTICLE命令的便捷方法，接受响应并返回响应码。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">articleNumber</td><td>要从当前选定的新闻组请求的文章编号。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>从服务器收到的响应码。 </dd></dl>

</div>
</div>
<a id="a37d95f520eff1dc4193bfaa7e3c0d3d2" name="a37d95f520eff1dc4193bfaa7e3c0d3d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a37d95f520eff1dc4193bfaa7e3c0d3d2">&#9670;&#160;</a></span>article() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.article </td>
          <td>(</td>
          <td class="paramname"><em>messageId</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>用于向服务器发送NNTP ARTICLE命令的便捷方法，接受响应并返回响应码。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">messageId</td><td>所请求文章的消息标识符，包括闭合的&lt;和&gt;字符。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>从服务器收到的响应码。 </dd></dl>

</div>
</div>
<a id="a2cf411724e249e1b8315f80d6cc1c968" name="a2cf411724e249e1b8315f80d6cc1c968"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2cf411724e249e1b8315f80d6cc1c968">&#9670;&#160;</a></span>authinfoPass()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.authinfoPass </td>
          <td>(</td>
          <td class="paramname"><em>password</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>用于向服务器发送AUTHINFO PASS命令的便捷方法，接受响应并返回响应码。此操作应该紧随AUTHINFO USER命令之后。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">password</td><td>有效的密码 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>从服务器收到的响应码。服务器应该为此命令返回281或502。 </dd></dl>

</div>
</div>
<a id="a30e075e090017a99a21a72b0b1d752ed" name="a30e075e090017a99a21a72b0b1d752ed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a30e075e090017a99a21a72b0b1d752ed">&#9670;&#160;</a></span>authinfoUser()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.authinfoUser </td>
          <td>(</td>
          <td class="paramname"><em>user</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>用于向服务器发送AUTHINFO USER命令的便捷方法，接受响应并返回响应码。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">user</td><td>有效的用户名 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>从服务器收到的响应码。服务器应该为此命令返回281或381。 </dd></dl>

</div>
</div>
<a id="afe551d49f7b68099c8e53c8d20529f2f" name="afe551d49f7b68099c8e53c8d20529f2f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe551d49f7b68099c8e53c8d20529f2f">&#9670;&#160;</a></span>body() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.body </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>用于向服务器发送NNTP BODY命令的便捷方法，接受响应并返回响应码。 </p>
<dl class="section return"><dt>返回</dt><dd>从服务器收到的响应码。 </dd></dl>

</div>
</div>
<a id="acd1b6fc37b0cabc1a7341abd2e74753d" name="acd1b6fc37b0cabc1a7341abd2e74753d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd1b6fc37b0cabc1a7341abd2e74753d">&#9670;&#160;</a></span>body() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.body </td>
          <td>(</td>
          <td class="paramname"><em>articleNumber</em>:&#160;</td>
          <td class="paramtype">Int64</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>用于向服务器发送NNTP BODY命令的便捷方法，接受响应并返回响应码。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">articleNumber</td><td>要从当前选定的新闻组请求的文章编号。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>从服务器收到的响应码。 </dd></dl>

</div>
</div>
<a id="ae0004490458cbddcac95662d546e5a85" name="ae0004490458cbddcac95662d546e5a85"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae0004490458cbddcac95662d546e5a85">&#9670;&#160;</a></span>body() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.body </td>
          <td>(</td>
          <td class="paramname"><em>messageId</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>用于向服务器发送NNTP BODY命令的便捷方法，接受响应并返回响应码。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">messageId</td><td>所请求文章的消息标识符，包括闭合的&lt;和&gt;字符。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>从服务器收到的响应码。 </dd></dl>

</div>
</div>
<a id="a63c2a93cb2108329e301e9637479ff13" name="a63c2a93cb2108329e301e9637479ff13"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a63c2a93cb2108329e301e9637479ff13">&#9670;&#160;</a></span>disconnect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public override func commonsNet.nntp.NNTP.disconnect </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>关闭与NNTP服务器的连接，并将某些内部数据置空，以便可以回收空间。 </p>

</div>
</div>
<a id="a399726e3a3b1f0fa246987e7080a8433" name="a399726e3a3b1f0fa246987e7080a8433"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a399726e3a3b1f0fa246987e7080a8433">&#9670;&#160;</a></span>getReply()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.getReply </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: Int64 </td>
        </tr>
      </table>
</div><div class="memdoc">

<p>从NNTP服务器获取回复并返回整数响应码。调用此方法后，可以从getReplySstring访问实际的响应文本。 </p>
<dl class="section return"><dt>返回</dt><dd>服务器对该命令响应的响应代码的整数值。 </dd></dl>

</div>
</div>
<a id="a0900112f09cb449984fcd8f9995fb662" name="a0900112f09cb449984fcd8f9995fb662"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0900112f09cb449984fcd8f9995fb662">&#9670;&#160;</a></span>getReplyCode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.getReplyCode </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回最后一个NNTP回复的回复代码的整数值。 </p>
<p>通常只有在连接到NNTP服务器后使用此方法来检查连接是否成功，因为connect没有返回值。</p>
<dl class="section return"><dt>返回</dt><dd>最后一个NNTP回复的回复代码的整数值。 </dd></dl>

</div>
</div>
<a id="a0a1eac243211b656810c9b26bafe2a94" name="a0a1eac243211b656810c9b26bafe2a94"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a1eac243211b656810c9b26bafe2a94">&#9670;&#160;</a></span>getReplyString()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.getReplyString </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回上一个NNTP服务器响应的完整文本（不包括行尾标记）。 </p>
<dl class="section return"><dt>返回</dt><dd>上一个NNTP服务器响应的完整文本。 </dd></dl>

</div>
</div>
<a id="ac865aa3b3459e21921507a8f9b13b0e9" name="ac865aa3b3459e21921507a8f9b13b0e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac865aa3b3459e21921507a8f9b13b0e9">&#9670;&#160;</a></span>group()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.group </td>
          <td>(</td>
          <td class="paramname"><em>newsgroup</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>用于向服务器发送NNTP GROUP命令的便捷方法，接受响应并返回响应码。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">newsgroup</td><td>要选择的新闻组名称。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>从服务器收到的响应码。 </dd></dl>

</div>
</div>
<a id="acdae4b22a9d99be6ad1d35c4c317ce5a" name="acdae4b22a9d99be6ad1d35c4c317ce5a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acdae4b22a9d99be6ad1d35c4c317ce5a">&#9670;&#160;</a></span>head() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.head </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>用于向服务器发送NNTP HEAD命令的便捷方法，接受响应并返回响应码。 </p>
<dl class="section return"><dt>返回</dt><dd>从服务器收到的响应码。 </dd></dl>

</div>
</div>
<a id="a3316bce2711c813a7f829110d518ccc3" name="a3316bce2711c813a7f829110d518ccc3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3316bce2711c813a7f829110d518ccc3">&#9670;&#160;</a></span>head() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.head </td>
          <td>(</td>
          <td class="paramname"><em>articleNumber</em>:&#160;</td>
          <td class="paramtype">Int64</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>用于向服务器发送NNTP HEAD命令的便捷方法，接受响应并返回响应码。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">articleNumber</td><td>要从当前选定的新闻组请求的文章编号。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>从服务器收到的响应码。 </dd></dl>

</div>
</div>
<a id="af1f4aede6017490a121c0d5b0faad69c" name="af1f4aede6017490a121c0d5b0faad69c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1f4aede6017490a121c0d5b0faad69c">&#9670;&#160;</a></span>head() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.head </td>
          <td>(</td>
          <td class="paramname"><em>messageId</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>用于向服务器发送NNTP HEAD命令的便捷方法，接受响应并返回响应码。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">messageId</td><td>所请求文章的消息标识符，包括闭合的&lt;和&gt;字符。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>从服务器收到的响应码。 </dd></dl>

</div>
</div>
<a id="a86a815f4499991422f5cd11ec43e59d5" name="a86a815f4499991422f5cd11ec43e59d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a86a815f4499991422f5cd11ec43e59d5">&#9670;&#160;</a></span>help()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.help </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>用于向服务器发送NNTP HELP命令的便捷方法，接受响应并返回响应码。 </p>
<dl class="section return"><dt>返回</dt><dd>从服务器收到的响应码。 </dd></dl>

</div>
</div>
<a id="a0c91aab858a368e260811225cf470dd2" name="a0c91aab858a368e260811225cf470dd2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c91aab858a368e260811225cf470dd2">&#9670;&#160;</a></span>ihave()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.ihave </td>
          <td>(</td>
          <td class="paramname"><em>messageId</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>用于向服务器发送NNTP IHAVE命令的便捷方法，接受响应并返回响应码。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">messageId</td><td>所请求文章的消息标识符，包括闭合的&lt;和&gt;字符。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>从服务器收到的响应码。 </dd></dl>

</div>
</div>
<a id="affc37d4ec2cad8c0f942718f76d855c4" name="affc37d4ec2cad8c0f942718f76d855c4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#affc37d4ec2cad8c0f942718f76d855c4">&#9670;&#160;</a></span>isAllowedToPost()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.isAllowedToPost </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>表示是否允许客户端将文章发布到其当前连接的服务器。 </p>
<dl class="section return"><dt>返回</dt><dd>如果客户端可以将文章发布到服务器，则为true，否则为false。 </dd></dl>

</div>
</div>
<a id="a9c9012eda5309f1087c78751ba682a89" name="a9c9012eda5309f1087c78751ba682a89"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9c9012eda5309f1087c78751ba682a89">&#9670;&#160;</a></span>last()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.last </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>用于向服务器发送NNTP LAST命令的便捷方法，接受响应并返回响应码。 </p>
<dl class="section return"><dt>返回</dt><dd>从服务器收到的响应码。 </dd></dl>

</div>
</div>
<a id="a2f2e865b3716f12bb7ae639d4ad169f3" name="a2f2e865b3716f12bb7ae639d4ad169f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f2e865b3716f12bb7ae639d4ad169f3">&#9670;&#160;</a></span>list()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.list </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>用于向服务器发送NNTP LIST命令的便捷方法，接受响应并返回响应码。 </p>
<dl class="section return"><dt>返回</dt><dd>从服务器收到的响应码。 </dd></dl>

</div>
</div>
<a id="aa719511f5667ce97c4ab6506831ea473" name="aa719511f5667ce97c4ab6506831ea473"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa719511f5667ce97c4ab6506831ea473">&#9670;&#160;</a></span>listActive()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.listActive </td>
          <td>(</td>
          <td class="paramname"><em>wildmat</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>扩展LIST命令的一个包装，它接受一个参数，允许我们选择性地列出多个组。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">wildmat</td><td>一种wildmat（伪正则表达式）模式。有关详细信息，请参阅RFC 2980。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>从服务器收到的响应码。 </dd></dl>

</div>
</div>
<a id="a5fca221d49f57d39390d44fb96fed367" name="a5fca221d49f57d39390d44fb96fed367"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5fca221d49f57d39390d44fb96fed367">&#9670;&#160;</a></span>newgroups()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.newgroups </td>
          <td>(</td>
          <td class="paramname"><em>date</em>:&#160;</td>
          <td class="paramtype">String, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramname"><em>time</em>:&#160;</td>
          <td class="paramtype">String, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramname"><em>GMT</em>:&#160;</td>
          <td class="paramtype">Bool, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramname"><em>distributions</em>:&#160;</td>
          <td class="paramtype">?String&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>用于向服务器发送 "NEWGROUPS" 命令的便捷方法，接受响应并返回响应码。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">date</td><td>要检查的新组的日期。格式为yyMMdd。 </td></tr>
    <tr><td class="paramname">time</td><td>要检查的新组的时间。格式为HHmmss，24小时制。 </td></tr>
    <tr><td class="paramname">GMT</td><td>如果时间为GMT，则为true；如果为服务器本地时间，则为false。 </td></tr>
    <tr><td class="paramname">distributions</td><td>逗号分隔的distributions列表，用于检查新组。如果没有则设置为None。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>从服务器收到的响应码。 </dd></dl>

</div>
</div>
<a id="a6f8ede65c99f11a6be9ee98dd5ce72bd" name="a6f8ede65c99f11a6be9ee98dd5ce72bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6f8ede65c99f11a6be9ee98dd5ce72bd">&#9670;&#160;</a></span>newnews()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.newnews </td>
          <td>(</td>
          <td class="paramname"><em>newsgroups</em>:&#160;</td>
          <td class="paramtype">String, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramname"><em>date</em>:&#160;</td>
          <td class="paramtype">String, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramname"><em>time</em>:&#160;</td>
          <td class="paramtype">String, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramname"><em>GMT</em>:&#160;</td>
          <td class="paramtype">Bool, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramname"><em>distributions</em>:&#160;</td>
          <td class="paramtype">?String&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>用于向服务器发送 "NEWGROUPS" 命令的便捷方法，接受响应并返回响应码。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">date</td><td>要检查的新新闻的日期。格式为yyMMdd。 </td></tr>
    <tr><td class="paramname">time</td><td>要检查的新新闻的时间。格式为HHmmss，24小时制。 </td></tr>
    <tr><td class="paramname">GMT</td><td>如果时间为GMT，则为true；如果为服务器本地时间，则为false。 </td></tr>
    <tr><td class="paramname">distributions</td><td>逗号分隔的distributions列表，用于检查新新闻。如果没有则设置为None。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>从服务器收到的响应码。 </dd></dl>

</div>
</div>
<a id="a0edcdddac31d00511e065632f59150e8" name="a0edcdddac31d00511e065632f59150e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0edcdddac31d00511e065632f59150e8">&#9670;&#160;</a></span>next()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.next </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>用于向服务器发送NNTP NEXT命令的便捷方法，接受响应并返回响应码。 </p>
<dl class="section return"><dt>返回</dt><dd>从服务器收到的响应码。 </dd></dl>

</div>
</div>
<a id="a838969b8339bcfd1764c0e875ad2fc33" name="a838969b8339bcfd1764c0e875ad2fc33"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a838969b8339bcfd1764c0e875ad2fc33">&#9670;&#160;</a></span>post()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.post </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>用于向服务器发送NNTP POST命令的便捷方法，接受响应并返回响应码。 </p>
<dl class="section return"><dt>返回</dt><dd>从服务器收到的响应码。 </dd></dl>

</div>
</div>
<a id="a5d89123831c0a39cd84cd594a63cd4ab" name="a5d89123831c0a39cd84cd594a63cd4ab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d89123831c0a39cd84cd594a63cd4ab">&#9670;&#160;</a></span>quit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.quit </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>用于向服务器发送NNTP QUIT命令的便捷方法，接受响应并返回响应码。 </p>
<dl class="section return"><dt>返回</dt><dd>从服务器收到的响应码。 </dd></dl>

</div>
</div>
<a id="a8cbacd89b8fdb93316904c5d31ec4506" name="a8cbacd89b8fdb93316904c5d31ec4506"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8cbacd89b8fdb93316904c5d31ec4506">&#9670;&#160;</a></span>sendCommand() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.sendCommand </td>
          <td>(</td>
          <td class="paramname"><em>command</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>向服务器发送不带参数的NNTP命令，等待答复并返回数字响应代码。 </p>
<p>调用后，要了解更多详细信息，可以通过调用{ getReplyString}来访问实际的回复文本。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">command</td><td>要发送的NNTP命令的文本表示形式。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>服务器对该命令响应的响应代码的整数值。 </dd></dl>

</div>
</div>
<a id="ac1b6e3cd7e8157bcda03a3a0cb18eb92" name="ac1b6e3cd7e8157bcda03a3a0cb18eb92"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac1b6e3cd7e8157bcda03a3a0cb18eb92">&#9670;&#160;</a></span>sendCommand() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.sendCommand </td>
          <td>(</td>
          <td class="paramname"><em>command</em>:&#160;</td>
          <td class="paramtype">String, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramname"><em>args</em>:&#160;</td>
          <td class="paramtype">?String&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>向服务器发送NNTP命令，等待答复并返回数字响应代码。 </p>
<p>调用后，要了解更多详细信息，可以通过调用{ getReplyString}来访问实际的回复文本。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">command</td><td>要发送的NNTP命令的文本表示形式。 </td></tr>
    <tr><td class="paramname">args</td><td>NNTP命令的参数，如果为None表示没有参数。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>服务器对该命令响应的响应代码的整数值。 </dd></dl>

</div>
</div>
<a id="a3f1a93479ff15ae840bbecb3feac0c0f" name="a3f1a93479ff15ae840bbecb3feac0c0f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f1a93479ff15ae840bbecb3feac0c0f">&#9670;&#160;</a></span>stat() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.stat </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>用于向服务器发送NNTP STAT命令的便捷方法，接受响应并返回响应码。 </p>
<dl class="section return"><dt>返回</dt><dd>从服务器收到的响应码。 </dd></dl>

</div>
</div>
<a id="a73c84b9f90b64464a8044665e20331b8" name="a73c84b9f90b64464a8044665e20331b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a73c84b9f90b64464a8044665e20331b8">&#9670;&#160;</a></span>stat() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.stat </td>
          <td>(</td>
          <td class="paramname"><em>articleNumber</em>:&#160;</td>
          <td class="paramtype">Int64</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>用于向服务器发送NNTP STAT命令的便捷方法，接受响应并返回响应码。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">articleNumber</td><td>要从当前选定的新闻组请求的文章编号。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>从服务器收到的响应码。 </dd></dl>

</div>
</div>
<a id="a9069273d7422680baf54ed71cb8c3a24" name="a9069273d7422680baf54ed71cb8c3a24"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9069273d7422680baf54ed71cb8c3a24">&#9670;&#160;</a></span>stat() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.stat </td>
          <td>(</td>
          <td class="paramname"><em>messageId</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>用于向服务器发送NNTP STAT命令的便捷方法，接受响应并返回响应码。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">messageId</td><td>所请求文章的消息标识符，包括闭合的&lt;和&gt;字符。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>从服务器收到的响应码。 </dd></dl>

</div>
</div>
<a id="a5f5d1360a80c49c43e014dc30da73878" name="a5f5d1360a80c49c43e014dc30da73878"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5f5d1360a80c49c43e014dc30da73878">&#9670;&#160;</a></span>xhdr()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.xhdr </td>
          <td>(</td>
          <td class="paramname"><em>header</em>:&#160;</td>
          <td class="paramtype">String, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramname"><em>selectedArticles</em>:&#160;</td>
          <td class="paramtype">String&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>用于向服务器发送NNTP XHDR命令的便捷方法，接受响应并返回响应码。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">header</td><td>信息头字符串，有关有效信息头，请参阅RFC-1036。 </td></tr>
    <tr><td class="paramname">selectedArticles</td><td>所请求的文章范围的字符串形式。可以是一个文章编号，或者是"XXXX-YYYY"形式的字符串，其中XXXX和YYYY为当前组中合法的编号。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>从服务器收到的响应码。 </dd></dl>

</div>
</div>
<a id="aa272d10c8a7e19ce4fffbc61d00c044a" name="aa272d10c8a7e19ce4fffbc61d00c044a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa272d10c8a7e19ce4fffbc61d00c044a">&#9670;&#160;</a></span>xover()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.nntp.NNTP.xover </td>
          <td>(</td>
          <td class="paramname"><em>selectedArticles</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>用于向服务器发送NNTP XOVER命令的便捷方法，接受响应并返回响应码。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">selectedArticles</td><td>所请求的文章范围的字符串形式。可以是一个文章编号，或者是"XXXX-YYYY"形式的字符串，其中XXXX和YYYY为当前组中合法的编号。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>从服务器收到的响应码。 </dd></dl>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="aa7f4efcb2fbfc23099953289ee915906" name="aa7f4efcb2fbfc23099953289ee915906"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa7f4efcb2fbfc23099953289ee915906">&#9670;&#160;</a></span>static let DEFAULT_PORT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.nntp.NNTP.static let DEFAULT_PORT : UInt16 = 119</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>NNTP默认端口 </p>

</div>
</div>
<a id="a689fc2d94b43ff1520e3c542caa25757" name="a689fc2d94b43ff1520e3c542caa25757"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a689fc2d94b43ff1520e3c542caa25757">&#9670;&#160;</a></span>var _isAllowedToPost</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.nntp.NNTP.var _isAllowedToPost : Bool = false</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a83ff87e63bf668d616a0652f2ee64d9a" name="a83ff87e63bf668d616a0652f2ee64d9a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a83ff87e63bf668d616a0652f2ee64d9a">&#9670;&#160;</a></span>var _reader_</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.nntp.NNTP.var _reader_ : ?StringReader&lt;StreamingSocket&gt; = None</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>包装StreamingSocket以与服务器通信。由｛ </p>

</div>
</div>
<a id="a0f677632bd5f0fcaf8ae3085d30ef59f" name="a0f677632bd5f0fcaf8ae3085d30ef59f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0f677632bd5f0fcaf8ae3085d30ef59f">&#9670;&#160;</a></span>var _writer_</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.nntp.NNTP.var _writer_ : ?StringWriter&lt;StreamingSocket&gt; = None</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>包装StreamingSocket以与服务器通信。由｛ </p>

</div>
</div>
<a id="af4fc17db3ae4daa007d6441381dec5e7" name="af4fc17db3ae4daa007d6441381dec5e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af4fc17db3ae4daa007d6441381dec5e7">&#9670;&#160;</a></span>var replyCode</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.nntp.NNTP.var replyCode = -1</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ad61a93b813aae007114082b0542f8692" name="ad61a93b813aae007114082b0542f8692"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad61a93b813aae007114082b0542f8692">&#9670;&#160;</a></span>var replyString</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.nntp.NNTP.var replyString = &quot;&quot;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>src/nntp/<a class="el" href="nntp_8cj.html">nntp.cj</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.9.6-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacecommonsNet.html">commonsNet</a></li><li class="navelem"><a class="el" href="namespacecommonsNet_1_1nntp.html">nntp</a></li><li class="navelem"><a class="el" href="classcommonsNet_1_1nntp_1_1NNTP.html">NNTP</a></li>
    <li class="footer">制作者 <img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.6 </li>
  </ul>
</div>
</body>
</html>
